package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"super/api/internal/config"
	"super/superrpc/superrpcclient"
)

type ServiceContext struct {
	Config   config.Config
	SuperRpc superrpcclient.Superrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		SuperRpc: superrpcclient.NewSuperrpc(zrpc.MustNewClient(c.SuperRpc)),
	}
}
